<?php
require_model('base.class');
class hospital extends base {
    private $table = 'Hospital';
    private $primary = 'HospitalId';
    function __construct() {
        parent::__construct($this->table,$this->primary);
    }
    function AddHospital($params) {
        return $this->insert_item($params);
    }
    function DeleteHospital($hospitalId) {
        return $this->delete_item($hospitalId);
    }
    function GetHospitalById($hospitalId) {
        return $this->get_item(array('HospitalId'=>$hospitalId));
    }
    function GetHospitals() {
        return $this->get_items();
    }
}